#pragma once

#include <QDialog>
#include "ui_trollface.h"
#include <QDesktopWidget>
#include <QWidget>

namespace qtangram {
    class Trollface : public QWidget, private Ui_trollface {
	Q_OBJECT
    public:
	Trollface(QWidget* parent = 0) : QWidget(parent) {
	    setupUi(this);
	    hide();
	    connect(resumeButton,SIGNAL(clicked()),this,SLOT(onResume()));
	}
	void rescale() {
	    QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
	    setSizePolicy(sizePolicy);
	    setMinimumSize(parentWidget()->size());
	    setMaximumSize(parentWidget()->size());
	}

    public slots:
	void onResume();
    };
}
